-- GENERATED SPELL FOR [Shadowsword Soulbinder] --


function spell0_25373(pUnit, Event) --@Curse of Exhaustion,n/a--
pUnit:FullCastSpellOnTarget(46434,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25373', 8000, 1)
end

function spell1_25373(pUnit, Event) --@Domination,Self--
pUnit:FullCastSpellOnTarget(46427,pUnit)
pUnit:RegisterEvent('Sorts_25373', 7000, 1)
end

function spell2_25373(pUnit, Event) --@Flash of Darkness,n/a--
pUnit:FullCastSpellOnTarget(46442,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25373', 664, 1)
end

function Sorts_25373(pUnit, Event)
local choix_sorts_25373 = math.random(0, 2)
if choix_sorts_25373 == 0 then
pUnit:RegisterEvent('spell0_25373', 1, 1)
end
if choix_sorts_25373 == 1 then
pUnit:RegisterEvent('spell1_25373', 1, 1)
end
if choix_sorts_25373 == 2 then
pUnit:RegisterEvent('spell2_25373', 1, 1)
end
end

function mob25373_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25373', math.random(1500, 3000), 1)
end

function mob25373_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25373_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25373_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25373, 1, 'mob25373_Action')
RegisterUnitEvent(25373, 2, 'mob25373_Leave')
RegisterUnitEvent(25373, 3, 'mob25373_Kill')
RegisterUnitEvent(25373, 4, 'mob25373_Die')
